FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER wf_sxf@163.com

RUN mkdir -p /entrance-guard

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone



WORKDIR /entrance-guard

EXPOSE 1025

ADD ./entrance-guard-1.0.0.jar ./

CMD java -Djava.security.egd=file:/dev/./urandom -jar entrance-guard-1.0.0.jar